function counter() {
    const div = document.createElement('div');
    const counterDiv = document.getElementById('counterDiv');
    div.setAttribute('id', 'counter');
    div.innerText = 1;
    counterDiv.appendChild(div);
    div.addEventListener('click', () => {
        div.innerText = +div.innerText + 1;
    })
}
export default counter;